<?php

class ConnexionSingleton {
	
	private static $_instance=null;
	
	
	function __construct() {
		
	}
		
	public static function getInstance () {
        if (!isset(self::$_instance))
        {
 			self::$_instance=new ConnexionSingleton();
        }
        return self::$_instance;
    }

    public function Connect(){
    	
    	$serveur = "localhost";
		$login = "root";
		$password = "root";
		$db="gestionCommercial";
		mysql_connect($serveur, $login, $password);
		mysql_select_db($db);
    }
    
	
}

?>